<%@page import="org.json.simple.JSONArray"%>
<%@page import="vo.StudyVo"%>
<%@page import="java.util.List"%>
<%@page import="dao.StudyDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("utf-8");
	String cate_no = request.getParameter("cate_no");  
	
	System.out.println("getTitlecate_no:"+cate_no);
	
	//String cate_no="5";
	StudyDao dao = StudyDao.getDao();
	
	List<StudyVo> list = dao.selectTitle(Integer.parseInt(cate_no));
	
	System.out.println(list.size());
	JSONArray arr = new JSONArray();
	arr.addAll(list);
	out.println(arr.toString());


%>